{include file="public/header" /}
<body class="gray-bg">
<div class="wrapper wrapper-content">
    <div class="row">
        <form class="form-horizontal" method="post">
            <div class="col-sm-12">
                <div class="tabs-container">

                    <div class="tab-content">
                        <div class="ibox-content">
                            <div class="form-group">
                                <label class="col-sm-2 control-label"> 状态：</label>
                                <div class="col-sm-9">
                                    <div class="radio i-checks">
                                        <label>
                                            <input type="radio" value="0" name="is_hidden" {present name='name'}{eq name="name.is_hidden" value="0"}checked{/eq}{else/}checked{/present}>显示
                                        </label>
                                        <label>
                                            <input type="radio" value="1" name="is_hidden" {present name='name'}{eq name="name.is_hidden" value="1"}checked{/eq}{/present}>隐藏
                                        </label>
                                    </div>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">图标：</label>
                                <div class="col-sm-9">
                                    <div class="input-group">
                                        <img src="{present name='name.icon'}{if condition='$name.icon'}__ROOT__{$name.icon}{else /}__IMG__add_img.png{/if}{else /}__IMG__add_img.png{/present}" id="imageimg" style="max-width: 100%;max-height: 600px">
                                        <input name="icon" type="hidden"  id="image" class="form-control" value="{present name='name'}{$name.icon}{/present}">
                                        <span class="input-group-btn">
                                                <button type="button" class="btn btn-primary" id="tubiao">上传</button>
                                            </span>
                                    </div>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">标题：</label>
                                <div class="col-sm-9">
                                    <input name="title" type="text" class="form-control" value="{present name='name'}{$name.title}{/present}">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">描述：</label>
                                <div class="col-sm-9">
                                    <textarea class="form-control" name="description">{present name="name"}{$name.description}{/present}</textarea>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">奖励类型：</label>
                                <div class="col-sm-9">
                                    <div class="radio i-checks">
                                        <label>
                                            <input type="radio" value="0" name="reward_type" {present name='name'}{eq name="name.reward_type" value="0"}checked{/eq}{else/}checked{/present}>金币
                                        </label>
                                        <label>
                                            <input type="radio" value="1" name="reward_type" {present name='name'}{eq name="name.reward_type" value="1"}checked{/eq}{/present}>积分
                                        </label>
                                    </div>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">奖励：</label>
                                <div class="col-sm-9">
                                    <input name="reward" type="text" class="form-control" value="{present name='name'}{$name.reward}{/present}">
                                    {eq name ='$name.name' value='sign_in'}
                                        <span class="help-block m-b-none" style="color: red"> 每日奖励之间用英文逗号,隔开 </span>
                                    {/eq}
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">奖励上限：</label>
                                <div class="col-sm-9">
                                    <input name="max" type="number" class="form-control" value="{present name='name'}{$name.max}{/present}">
                                    <span class="help-block m-b-none" style="color: red"> 每日任务需填写 </span>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">性别限制：</label>
                                <div class="col-sm-9">
                                    <div class="radio i-checks">
                                        <label>
                                            <input type="radio" value="0" name="sex_limit" {present name='name'}{eq name="name.sex_limit" value="0"}checked{/eq}{else/}checked{/present}>不限
                                        </label>
                                        <label>
                                            <input type="radio" value="1" name="sex_limit" {present name='name'}{eq name="name.sex_limit" value="1"}checked{/eq}{/present}>仅女性
                                        </label>
                                        <label>
                                            <input type="radio" value="2" name="sex_limit" {present name='name'}{eq name="name.sex_limit" value="2"}checked{/eq}{/present}>仅男性
                                        </label>
                                    </div>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">排序：</label>
                                <div class="col-sm-9">
                                    <input name="sort" type="number" class="form-control" value="{present name='name'}{$name.sort}{/present}">
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </form>
    </div>
</div>
{include file="public/footer" /}
{load href="__PLUGINS__iCheck/icheck.min.js"}
{load href="__PLUGINS__iCheck/custom.css"}
<script type="text/javascript">
    $(document).ready(function(){
        $(".i-checks").iCheck({
            checkboxClass: "icheckbox_square-green",
            radioClass: "iradio_square-green",
        })
    });
</script>
{include file="public/bottom" /}
